using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;

namespace QLNS
{
    public partial class frmReport : Form
    {
        public frmReport()
        {
            InitializeComponent();
        }

        public frmReport(int reportType)
        {
            InitializeComponent();

            switch (reportType)
            {
                case 1:
                    crystalReportViewer1.ReportSource = "NhanVienReport1.rpt";
                    break;
                case 2:
                    crystalReportViewer1.ReportSource = "NhanVienReport2.rpt";
                    break;
                case 3:
                    crystalReportViewer1.ReportSource = "ThiSinhReport.rpt";
                    break;
            }
        }

        private void frmReport_Load(object sender, EventArgs e)
        {
            
        }
    }
}